export default {
  name: "zh_CN",
  messages: {
    _default: n => {
      return n + "的值无效";
    },
    after: (n, e) => {
      var t = e[0];
      return n + "必须在" + t + "之后" + (e[1] ? "或等于" + t : "");
    },
    alpha: n => {
      return n + "只能包含字母字符";
    },
    alpha_dash: n => {
      return n + "能够包含字母数字字符、破折号和下划线";
    },
    alpha_num: n => {
      return n + "只能包含字母数字字符";
    },
    alpha_spaces: n => {
      return n + "只能包含字母字符和空格";
    },
    before: (n, e) => {
      var t = e[0];
      return n + "必须在" + t + "之前" + (e[1] ? "或等于" + t : "");
    },
    between: (n, e) => {
      return n + "必须在" + e[0] + "与" + e[1] + "之间";
    },
    confirmed: (n, e) => {
      return n + "不能和" + e[0] + "匹配";
    },
    credit_card: n => {
      return n + "的格式错误";
    },
    date_between: (n, e) => {
      return n + "必须在" + e[0] + "和" + e[1] + "之间";
    },
    date_format: (n, e) => {
      return n + "必须符合" + e[0] + "格式";
    },
    decimal: (n, e) => {
      void 0 === e && (e = []);
      var t = e[0];
      return (
        void 0 === t && (t = "*"),
        n + "必须是数字，且能够保留" + ("*" === t ? "" : t) + "位小数"
      );
    },
    digits: (n, e) => {
      return n + "必须是数字，且精确到" + e[0] + "位数";
    },
    dimensions: (n, e) => {
      return n + "必须在" + e[0] + "像素与" + e[1] + "像素之间";
    },
    email: n => {
      return n + "不是一个有效的邮箱";
    },
    excluded: n => {
      return n + "不是一个有效值";
    },
    ext: n => {
      return n + "不是一个有效的文件";
    },
    image: n => {
      return n + "不是一张有效的图片";
    },
    included: n => {
      return n + "不是一个有效值";
    },
    integer: n => {
      return n + "必须是整数";
    },
    ip: n => {
      return n + "不是一个有效的地址";
    },
    length: (n, e) => {
      var t = e[0],
        r = e[1];
      return r
        ? n + "长度必须在" + t + "到" + r + "之间"
        : n + "长度必须为" + t;
    },
    max: (n, e) => {
      return n + "不能超过" + e[0] + "个字符";
    },
    max_value: (n, e) => {
      return n + "必须小于或等于" + e[0];
    },
    mimes: n => {
      return n + "不是一个有效的文件类型";
    },
    min: (n, e) => {
      return n + "必须至少有" + e[0] + "个字符";
    },
    min_value: (n, e) => {
      return n + "必须大于或等于" + e[0];
    },
    numeric: n => {
      return n + "只能包含数字字符";
    },
    regex: n => {
      return n + "格式无效";
    },
    required: n => {
      return n + "不能为空";
    },
    size: (n, e) => {
      var t,
        r,
        u,
        i = e[0];
      return (
        n +
        "必须小于" +
        ((t = i),
        (r = 1024),
        (u =
          0 == (t = Number(t) * r) ? 0 : Math.floor(Math.log(t) / Math.log(r))),
        1 * (t / Math.pow(r, u)).toFixed(2) +
          " " +
          ["Byte", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"][u])
      );
    },
    url: n => {
      return n + "不是一个有效的url";
    }
  },
  attributes: {}
};
